using System;
using System.Collections.Generic;
using System.Text;

namespace DiceRoller.Data {

  public class DiceRoller {

    public DiceRoller() {
    }

    public int[] roll(int numDice) {
      int[] rolledDice = new int[numDice];
      System.Random r = new System.Random(Convert.ToInt32((DateTime.Now).Ticks % Int32.MaxValue));

      for(int i = 0; i < numDice; i++) {
        rolledDice[i] = r.Next(0, 9);
      }
      return rolledDice;
    }
  }
}
